Learner.Language Property

Gets or sets the learner's preferred language, for those RLO's with multi-language capability.

Parent Type: Learner

Namespace: Microsoft.LearningComponents.DataModel

Assembly: Microsoft.LearningComponents.dll

Syntax
C#

public string Language

{ get; set; }
Exceptions
Exception type Condition
InvalidOperationException

Thrown if this LearningDataModel object cannot be written to.

ArgumentOutOfRangeException

Thrown if the string passed is longet than BaseSchemaInternal.UserItem.MaxLanguageLength for SCORM 2004 packages, or longer than 255 characters for SCORM 1.2 packages.

Remarks

In SCORM 2004, this corresponds to cmi.learner_preference.language.

In SCORM 1.2, this corresponds to cmi.student_preference.language.

In SCORM 2004, this value corresponds to a standard language code as per iso-646.

In SCORM 1.2, this value is freeform text, e.g. "English", "French".

In either case, an empty string indicates the use of the default system language.